Add to minibuffer-history if HISOTRY is nil in ido.el
authorLeo Liu <sdl.web@gmail.com>
Tue, 29 Mar 2011 08:25:31 +0000 (16:25 +0800)
committerLeo Liu <sdl.web@gmail.com>
Tue, 29 Mar 2011 08:25:31 +0000 (16:25 +0800)
It is broken by the change on 2011-03-21.

lisp/ChangeLog
lisp/ido.el

index 95027c5bd77a0fb7d4062662276392b7e070134e..8f60c8484d7b04dcbb5bfcac90423ee2200bf5c2 100644 (file)
@@ -1,3 +1,8 @@
+2011-03-29  Leo Liu  <sdl.web@gmail.com>
+
+       * ido.el (ido-read-internal): Use the default history var
+       minibuffer-history if no HISTORY is specified.
+
 2011-03-28  Leo Liu  <sdl.web@gmail.com>
 
        * abbrev.el (abbrev-table-empty-p): New function.
index 177f933887015d861a316c4a3bfba368e2adc486..0ce83d9b88c0e225f60bfeb3026c84f809df2f0f 100644 (file)
@@ -2151,7 +2151,7 @@ If INITIAL is non-nil, it specifies the initial input string."
 
         (t
          (setq done t))))))
-    (and history (add-to-history history ido-selected))
+    (add-to-history (or history 'minibuffer-history) ido-selected)
     ido-selected))
 
 (defun ido-edit-input ()